package Mangos::DB::Mangos::BattlegroundEvents;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'battleground_events',

    columns => 
    [
        map         => { type => 'integer', not_null => 1 },
        event1      => { type => 'integer', not_null => 1 },
        event2      => { type => 'integer', not_null => 1 },
        description => { type => 'varchar', length => 255, not_null => 1 },
    ],

    primary_key_columns => [ 'map', 'event1', 'event2' ],
);

1;

package Mangos::DB::Mangos::BattlegroundEvents::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::BattlegroundEvents' }

__PACKAGE__->make_manager_methods('battleground_events');

1;
